FROM openjdk:8
WORKDIR /app
# 挂在日志目录
VOLUME /logs
# 将jar文件拷贝到镜像中。注：docker-maven-plugin 会将jar文件拷贝到构建目录target/docker/中
COPY ./*.jar /app/nanyang-tms-job.jar
# java 内存优化
ENV JAVA_OPTS=""
# tomcat 线程优化
ENV TOMCAT_OPTS=""
ENTRYPOINT exec   java $JAVA_OPTS $TOMCAT_OPTS  -Djava.security.egd=file:/dev/./urandom -jar -server /app//nanyang-tms-job.jar
EXPOSE 8081


